package com.chenyun.system.param;

import com.chenyun.common.vo.SimpleQueryPage;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: lonni
 * @CreateTime: 2023-12-06  20:32
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TenantParam extends SimpleQueryPage {


    private Integer id;

    @NotBlank(message = "租户名称不能为空")
    private String name;

    private String nickName;
    private String userName;
    private String password;
    @NotBlank(message = "请输入联系人手机号")
    private String mobile;

    /**
     * 租户状态（0正常 1停用）
     */

    private Integer status=0;
    /**
     * 域名
     */
    private String domain;
    /**
     * 过期时间
     */
    @NotNull(message = "请选择过期时间")
    private Date expireTime;
    /**
     * 类型id
     */
    @NotNull(message = "请选择租户类型")
    private Integer typeId;

    /**
     * 账户数量
     */
    private Integer accountCount=0;


    /**
     * 租户类型
     */
    private String typeName;


    private String extra;
}
